<?php $this->beginContent('//layouts/main'); ?>
<div class="container">
    <div class="span-19">
        <div id="content">
            <?php if(Yii::app()->user->hasFlash('error')): // {{{ ?>
            <div
                id="flashError" 
                class="info"
                style="display:none;float:left;">
              <table>
                <tr valign="top">
                  <td style="padding-right:10px;width:40px;">
                    <?php echo CHtml::image(
                        Yii::app()->baseUrl.'/images/iconExclamation.png',
                        'Exclamation Icon',
                        array('align' => 'top')
                      );
                    ?>
                  </td>
                  <td style="padding-right:10px;">
                    <?php echo Yii::app()->user->getFlash('error'); ?>
                  </td>
                  <td>
                    <?php echo Yii::app()->user->getFlash('success'); ?>
                  </td>
                  <td style="color:blue;font-size:1.2em;font-weight:bold;">
                  [<a href="#" title="<?php echo henc(_('Click to close this message box')); ?>" onclick="jQuery('#flashError').hide('slow');">X</a>]
                  </td>
                </tr>
              </table>
            </div>
            <div style="clear:left"></div>
        <script type="text/javascript">
        <!--
        jQuery("#flashError").show("slow");
        // -->
        </script>
            <?php endif; // }}} ?>
            <?php if(Yii::app()->user->hasFlash('success')) : // {{{ ?>
            <div 
                id="flashSuccess" 
                class="info"  
                style="display:none;float:left">
              <table>
                </tr>
                <tr valign="top">
                  <td style="padding-right:10px;width:40px;">
                    <?php echo CHtml::image(
                        Yii::app()->baseUrl.'/images/iconInformation.png',
                        'Info Icon',
                        array('align' => 'top')
                      );
                    ?>
                  </td>
                  <td style="padding-right:10px">
                    <?php echo Yii::app()->user->getFlash('success'); ?>
                  </td>
                  <td style="color:blue;font-size:1.2em;font-weight:bold;">
                  [<a href="#" title="<?php echo henc(_('Click to close this message box')); ?>" onclick="jQuery('#flashSuccess').hide('slow');">X</a>]
                  </td>
                </tr>
              </table>
            </div>
            <div style="clear:left"></div>
        <script type="text/javascript">
        <!--
        jQuery("#flashSuccess").show("slow");
        // -->
        </script>
            <?php endif; // }}} ?>
            <?php echo $content; ?>
        </div><!-- content -->
    </div>
    <div class="span-5 last">
        <div id="sidebar" class="dontprint">
        <?php
            $this->beginWidget('zii.widgets.CPortlet', array(
                'title'=>Yii::t('site','Operations'),
            ));
            
            $this->widget('zii.widgets.CMenu', array(
                'items'=>$this->menu,
                'htmlOptions'=>array('class'=>'operations'),
            ));
            $this->endWidget();
        ?>
        <?php $this->widget('UserLogin',array('visible'=>Yii::app()->user->isGuest)); ?>
        <?php $this->widget('UserMenu',array('visible'=>!Yii::app()->user->isGuest)); ?>
        </div><!-- sidebar -->
    </div>
</div>
<?php $this->endContent(); ?>
